<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var a=10;
        // var b="hello";
        // console.log(a+b);

        var obj={
            name:'赵四',
            age:40,
            toString:function(){
                return 10;
            },
            valueOf:function(){
                return 20;
            }
        }
        var a=10;
        console.log(obj-a);
    </script>
</head>
<body>
    
</body>
</html>